package itsm.isperp.control.form.table;

import itsm.isperp.control.HtmlControl;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * 
 * 
 * @author lizx
 * @date 2015-11-5
 * @since 1.0
 * 
 */
public abstract class NormalTreeTable<T extends NormalTreenodeRow<?>>
		implements HtmlControl {

	// 行中最长的列数
	int maxColumn;

	List<T> rows = new ArrayList<>();

	public int getMaxColumn() {
		return maxColumn;
	}

	public void setMaxColumn(int maxColumn) {
		this.maxColumn = maxColumn;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	public void addRow(T row) {
		rows.add(row);
	}
}
